package com.xr.miniprogram.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@TableName("mp_user_address")
@Data
public class MiniProgramUserAddress {
    @TableId(type = IdType.AUTO)
    @NotNull(groups = {update.class},message = "用户地址ID不能为空")
    private Long miniProgramUserAddressId;
    @NotNull(groups = {add.class},message = "用户ID不能为空")
    private Long miniProgramUserId;
    private String receiver;
    private Long sex;
    private String receivePhone;
    private String province;//省
    private String municipality;//市
    private String district;//区
    private String street;//街道、路
    private String addressName;//建筑名、地标
    private String detailAddress;//门牌
    private String location;//位置信息
    private Integer defaultStatus;//默认状态
    public interface add{};
    public interface update{};
}
